import React from "react";
import { useRoutes } from "react-router-dom";
import Routes from "./routes";

export default function App() {
  // 路由表生成对应的路由规则
  const routerElement = useRoutes(Routes);

  return (
    <>
      {/* 注册路由 */}
      {routerElement}
    </>
  );
}
